public class Rose extends Flower//Rose 继承 Flower类
{
    private String Origin;
    public Rose()//默认构造方法
    {

    }
    public Rose(String color,double price,String Origin)//三个参数的构造方法
    {
        super("紫色",30);
        this.Origin=Origin;
    }
    public void SetOrigin(String Origin)
    {
        this.Origin=Origin;
    }
    public String GetOrigin(String Origin)
    {
        return this.Origin;
    }
    public void ShowInfo()
    {
        super.ShowInfo();
        System.out.println("产地是" + Origin);

    }
    public void Warn()
    {
        System.out.println("不要摘玫瑰花，小心扎手！");
    }
}
